html,
body {
    height: 100%;
    background-color: #edf0f2
}

.pre {
    white-space:pre-wrap;
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
}

.pre code {
    padding: 8px !important;
    font-size: 100% !important;
}

.pre .language-plaintext{
    background-color:#0000 !important; 
}

.ck-content code[class*="language-"],
.ck-content pre[class*="language-"] {
  color: #000;
}

.pre p {
    margin: 0;
}
.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 0 16px 0 16px;

}

.container > .main_body {
    padding: 22px 16px 22px 16px;
    background-color: #fff;
}

.footer {
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
.logo .brand {
    color: #fff;
    font-size: 22px;
    float: left;
    padding-left: 10px;
    position: relative;
    top: 1px;
    border-left: 1px solid #eaeaea;
    margin-top: 15px;
    margin-left: 5px;
    overflow: hidden;
    height: 55px;
    line-height: 55px;
}
#header {
    background-color: #006179;
    margin-bottom: 0;
    border: medium none;
}
.page-header {
    margin: 0;
    border-bottom: 0;
}
.page-header .navbar-brand img {
    width: 178px;
    height: 52px;
}
.jumbotron {
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.progress {
    height: 14px;
}

.progress-bar {
    line-height: 14px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.well-done {
    color: green;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.html-output {
    word-wrap: break-word;
}
.html-output img, .markdown img {
    max-width: 100%;
}
/*
 * Blog posts
 */
.blog {
    padding: 0 30px;
}
.blog-main {
    font-size: 18px;
    line-height: 1.5;
}
.blog-post {
    margin-bottom: 60px;
}
.blog-post-title {
    margin-bottom: 5px;
    }
.blog-post-meta {
    margin-bottom: 20px;
    color: #999;
}
/* Sidebar modules for boxing content */
.sidebar-module {
    padding: 15px;
}
.sidebar-module-inset {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
    margin-bottom: 0;
}
.index-discuss-item {
    padding: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.discuss-title {
    word-wrap:break-word;
    word-break:break-all;
}
.news-view {
    max-width: 990px;
    margin: auto;
}
.news-view .news-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    font-family: "Microsoft YaHei", "SimHei";
    margin: 10px 0px;
}
.news-view .news-meta {
    height: 24px;
    color: rgb(153, 153, 153);
    font-size: 12px;
    text-align: center;
    line-height: 24px;
    background: rgb(243, 243, 243);
}
.news-view .news-content {
    font-size: 17px;
    line-height: 33px;
    color: rgb(51, 51, 51);
}
.content-wrapper {
    padding: 9px 15px;
    font-family: -apple-system, 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 2em;
}

.content-wrapper img {
    max-width: 100%;
}

.sample-test .input, .sample-test .output {
    border: 1px solid #888;
}

.sample-test h4 {
    padding: 0.25em;
    margin: 0;
    border-bottom: 1px solid #888;
    text-transform: lowercase;
    font-weight: bold;
}
.sample-test pre {
    padding: 0.25em;
    margin: 0;
    background-color: #efefef;
    border: none;
}

.sample-test .output {
    margin-bottom: 1em;
    position: relative;
    top: -1px;
}

.box {
    border: 1px solid #ddd;
    background: #fbfbfb;
    margin-bottom: 15px;
}

.contest-title {
    text-align: center;
    margin-top: 0;
    font-weight: 700;
}

.solution-index table, .solution-index table th {
    text-align: center;
}

.table-overview {
    margin: 0 auto;
    width: 50%;
    min-width: 500px;
}

.table-overview td, .table-overview th {
    font-weight: 400;
    border-top: 0 !important;
}

.table-overview th {
    text-align: right;
}
.table-problem-list {
    margin: 0 auto;
    min-width: 600px;
}
.table-problem-list th {
    text-align: center;
}
.table-problem-list td {
    text-align: left;
}

.rating-index tr td:nth-child(1),
.rating-index tr th:nth-child(1) {
    text-align: center;
    width: 80px;
}


.rating-index tr td:nth-child(3),
.rating-index tr th:nth-child(3) {
    text-align: center;
    width: 120px;
}


.rating-index tr td:nth-child(4),
.rating-index tr th:nth-child(4) {
    text-align: center;
    width: 100px;
}
.rating-top {
    text-align: center;
}
.rating-one {
    font-size: 120px;
    color: gold;
}
.rating-two {
    margin-top: 20px;
    font-size: 100px;
    color: silver;
}
.rating-three {
    margin-top: 40px;
    font-size: 80px;
    color: #B87333
}
.rating-one-name {
    margin-top: 0;
}
.rating-two-name {
    margin-top: 9px;
}
.rating-three-name {
    margin-top: 17px;
}

.problem-index-list tr td:nth-child(1),
.problem-index-list tr th:nth-child(1),
.problem-index-list tr td:nth-child(3),
.problem-index-list tr th:nth-child(3),
.table-problem-list1 tr td:nth-child(1),
.table-problem-list1 tr th:nth-child(1),
.table-problem-list1 tr td:nth-child(2),
.table-problem-list1 tr th:nth-child(2),
.table-problem-list1 tr td:nth-child(4),
.table-problem-list1 tr th:nth-child(4),
.table-text-center tr th,
.table-text-center tr td
{
    text-align:center;
}


.table-bordered > thead > tr > th, .table-bordered > thead > tr > td {
    border-bottom-width: 0px;
    padding: 16px;
    vertical-align:middle;
}

.table-bordered > tbody > tr > th, .table-bordered > tbody > tr > td {
    padding: 10px;
    vertical-align:middle;
}

.contest-countdown {
    padding: 20px;
    font-size: 100px;
}
.contest-desc {
    text-align: left;
    background-color: #fff;
    margin: 0 25%;
}
.solved {
    background-color: #AAE2AB;
}

.solved-first {
    background-color: #57B257;
    color: #FFF;
}

.attempted {
    background-color: #F67B51;
}

.pending {
    background-color: #DCDCDC;
}

.legend-strip {
    clear: both;
}

.legend-strip .table-legend:not(:first-child) {
    margin-left: 20px;
}

.table-legend {
    border: 1px solid #CBCBCB;
    padding: 4px;
    display: inline;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 15px;
    color: #82868b;
}
.table-legend div {
    display: inline;
}
.table-legend .legend-status, .table-legend .legend-leader, .table-legend .legend-whoami {
    width: 23px;
    height: 23px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.table-legend .legend-label {
    display: inline;
    font-size: 14px;
    margin-top: 2px;
}

.table-rank th {
    text-align: center;
}
.table-problem-cell {
    font-size: 14px;
    padding: 0 !important;
    margin: 0;
    text-align: center;
}
.table-problem-cell small {
    font-weight: normal;
}
.score-solved {
    width: 40px;
    border-color: silver;
    border-right: 0 !important;
}
.score-time {
    width: 60px;
    border-left: 0 !important;
    font-weight: normal;
}

.problem-list-tags {
    float: right;
}

.problem-list-tags .label {
    margin: 2px;
}
.tag-group {
    padding: 0;
}
.tag-group-item {
    display: inline-block;
    background-color: #DDD;
    margin-right: 3px;
    margin-bottom: 5px;
    padding: 5px 7px;
    border-radius: 2px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition-timing-function: ease;
    transition-duration: 0.2s;
    transition-property: background-color;
}

.rated-user {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-decoration: none !important;
    font-weight: bold;
}

.user-black {
    color: black !important;
    font-weight: normal !important;
}

.user-red {
    color: red !important;
}

.user-fire {
    color: red !important;
}

.user-yellow {
    color: #bb0 !important;
}

.user-violet {
    color: #a0a !important;
}

.user-orange {
    color: #FF8C00 !important;
}

.user-blue {
    color: blue !important;
}

.user-cyan {
    color: #03A89E !important;
}

.user-green {
    color: green !important;
}

.user-gray {
    color: gray !important;
}

.user-admin {
    color: black !important;
}

.test-for-popup {
    margin: 0;
    border: none;
}

.btn-copy {
    font-size: 12px;
    font-weight: 500;
    float: right;
   
    background-color:#fff;

    cursor: pointer;
    padding: 3px 10px;
    margin: 1px;
    line-height: 1.1rem;
    border-radius: 3px;
    text-transform: none;
    text-decoration: none !important;
}
.btn-copy:hover {
    background-color:#eee;
    border: 1px solid #ccc;
    
}
.w-25 {
    width: 25%!important;
}

.card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    transition: all 0.3s;
}

.card-header:first-child {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}

.card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}
.card-body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}
.card-title {
    margin-top: 0;
    margin-bottom: .75rem;
}
.card-footer:last-child {
    border-radius: 0 0 calc(.25rem - 1px) calc(.25rem - 1px);
}
.card-footer {
    padding: .75rem 1.25rem;
    background-color: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.125);
}
.card-columns {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 5;
    -webkit-column-gap: 1.25rem;
    -moz-column-gap: 1.25rem;
    column-gap: 1.25rem;
}
.card-columns .card {
    display: inline-block;
    width: 100%;
}
.card-columns .card {
    margin-bottom: .75rem;
}


.label-default {
  background-color: #fff;
}


.label{
    font-weight:normal;
    border:1px;font-size:12px;
}




.label-success{
    border:1px solid #3EA86F;color:#3EA86F;background-color:#E0F7D7;
}

.label-warning{
    border:1px solid #D26719;color:#D26719;background-color:#FEEACC;
}

.label-info{
    border:1px solid #813D85;color:#813D85;background-color:#F5E3F9;
}

.label-danger{
    border:1px solid #C92B5F;color:#C92B5F;background-color:#FFE4EC;
}

.label-primary{
    border:1px solid #2675B5 !important;color:#2675B5;background-color:#D2EFFE;
}

.label-normal{
    border:1px solid #ddd !important;color:#3b3b3b;background-color:#eee;
}

a.label-normal:hover{
    border:1px solid #ccc !important;color:#3b3b3b;background-color:#ddd;
}

.tagging_list li {
    list-style-type: none; 
    display: inline-block; 
    margin-bottom:8px;
    padding: 3px 1px;
}

.press .bar {
    text-align: center;  
    padding:0px 3px;
    background-color: #7abdf8;  
    display: flex;  
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    width: 0%;  
    height: 100%;  
   }
  
  .press { 
        width:100%;
        height:100%;
      background-color: #eee;
      box-shadow: inset 1px 2px 2px rgba(0,0,0,.1);
      border-radius: .25em;
      overflow: hidden;  
  }
  
  .press a{ 
      text-decoration:none; color:#000;
  }
  

  .boxshow5 {
    box-shadow: 0 1px 5px 0 rgba(0,0,0,.1);
    background-color: #fff;
    border-color: #fff;
}

@media (min-width: 1600px) {
  .container {
    width: 1570px;
  }
}

.wrap  .navbar-brand {
    padding: 3px 3px;
}

.navbar-right li a {
line-height: 30px;
}

.radius {
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,.1);
}


a.text-vip {
    color: #008800;
    text-decoration: none;
}

a.text-vip:hover,
a.text-vip:focus {
    color: #000;
    text-decoration: none;
}


a.text-teacher {
    color: #A0522D;
    text-decoration: none;
}

a.text-teacher:hover,
a.text-teacher:focus {
    color: #000;
    text-decoration: none;
}

a.text-train {
    color: #9932CC;
    text-decoration: none;
}

a.text-train:hover,
a.text-train:focus {
    color: #000;
    text-decoration: none;
}

.navbar-header {
    min-height: 60px;

}

.navbar-nav > li:hover{
    border-top: 3px solid #0c7abf;
}


.navbar-nav  .active{
    border-top: 3px solid #ed5f82;
}

.dropdown-menu  .active {

    border-top: 0px;
}

.navbar-nav > li {
    border-top: 3px solid transparent;
}

.float-left {
float: left !important;
}

.float-right {
float: right !important;
}

.float-none {
float: none !important;
}

.lead{
color: #868e96;
}

.custom-file {
position: relative;
display: inline-block;
width: 100%;
height: calc(1.5em + 1rem + 2px);
margin-bottom: 0;
}

  
.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
  }
  
  .custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + 1rem);
    padding: 0.5rem 1.1rem;
    line-height: 1.5;
    color: #495057;
    content: "浏览文件";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 0.25rem 0.25rem 0;
  }
  

.alert-light {
    color: #343a40;
    background-color: #f8f9fa;
}

.bg-tablehead {
    background-color: #F9FAFB;
}

.section-body  {
    padding: 24px 32px;
    display: table;
    border-top: 1px solid #e4e4e4;
    width: 100%;
}

.section-body:first-child {
    border-top: 0px solid #e4e4e4;
}

.media__left {
    padding-right: 24px;
}

.large {
    font-size: 26px;
}

.numbox__text {
    font-size: 14px;
    margin-top: 4px;
    color: #aaa;
}

.media__body {
    width: 100%;
}

.media__body li{
    padding-top: 10px;
}

.media__left, .media__right, .media__body {
    display: table-cell;
    vertical-align: middle;
}
.contest__date {
    margin-right: 16px;
    white-space: nowrap;
}

.numbox {
    text-align: center;
}

.supplementary {
    font-size: 14px;
    color: #aaa;
}

ul, ol {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.supplementary  li {
    display: inline-block;
    margin-right: 16px;
    vertical-align: middle;
}

.contest__title {
    font-size: 20px;
}

.contest-tag-green {
    background: #6bb67a;
    color:#fff;
}

a.contest-tag-green:hover ,a.contest-tag-green:focus {
    background: #5ca16a;
    color:#fff;
}

.contest-tag-blue {
    background: #337ab7;
    color:#fff;
}

a.contest-tag-blue:hover ,a.contest-tag-blue:focus {
    background: #286498;
    color:#fff;
}


.contest-tag-info {
    background: #17a2b8;
    color:#fff;
}

a.contest-tag-info:hover ,a.contest-tag-info:focus {
    background: #12899c;
    color:#fff;
}

.contest-tag-darkvoilet {
    background: #9400D3;
    color:#fff;
}

a.contest-tag-darkvoilet:hover ,a.contest-tag-darkvoilet:focus {
    background: #7e00b5;
    color:#fff;
}



.contest-tag {
    font-size: 12px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
}

.text-blue {
    color: #0074d9;
}

.text-green {
    color:#008800;
}


.text-white {
    color: #fff; 
}


.text-dark {
    color: #555 !important;
}
  
.text-gray {
    color: #999 !important;
}

a.text-none-decoration {
    text-decoration:none;
}

.status-clone {
    background: #1b9cff;
    color: #fff; 
}

a.status-clone:hover ,a.status-not-start:focus {
    background: #0e63a4;
    color:#fff;
}


.status-edit {
    background: #6A5ACD;
    color: #fff; 
}

a.status-edit:hover ,a.status-not-start:focus {
    background: #423882;
    color:#fff;
}

.status-not-start {
    background: #ff851b;
    color: #fff; 
}

a.status-not-start:hover ,a.status-not-start:focus {
    background: #df7416;
    color:#fff;
}


.status-runing{
    background: #990033;
    color: #fff;    
}

a.status-runing:hover ,a.status-runing:focus {
    background: #7f012b;
    color:#fff;
}

.status-ended{
    background: #969696;
    color: #fff;    
}

.status-hide{
    background: #222;
    color: #bbb;    
}

a.status-ended:hover ,a.status-ended:focus {
    background: #767676;
    color:#fff;
}

.text-ellipsis {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
}

.group-img{
    width: 80px;
    max-height: 80px;
    border-radius:5px;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px;
    /* font-size: 16px; */
}


.site-login .input-group-addon{
    background-color:#FFF !important;
}

.site-login #loginform-username,.site-login #loginform-password{
    border-left:none !important;
}

.site-login .reset-password{
    margin-top:10px;
}

.site-login a{
    text-decoration: none;
}

.site-login .tips{
    font-weight: normal;
}

.btn-group-justified secect {
    width:100%;
}

.a_just a {

    margin: 0px 5px;

}

.content-header{
    padding:8px 8px;
    background-color:#F9F9F9;
    color:#333333;
    border-bottom:1px solid #e8e8e8;
    font-weight:bold;font-size:16px;
}


.content-title {
    font-weight:bold;font-size:20px; 
    margin-bottom: 10px;
}

.solution-view{
    background-color: #fff;
}